//
//  HomeOwnViewModel.swift
//  imprint
//
//  Created by 小柠檬🍋 on 2025/2/3.
//

import Foundation
import SwiftUI

class ChatMoreBottomViewModel: BaseViewModel {
    
    @Published var items = [ChatMoreBean]()
    @Published var status = ""
    
    func getData() {
        pageSize = 1
        var listAll: [ChatMoreBean] = []
        listAll.append(ChatMoreBean(
            type: ChatMoreType.TYPE_PICTURE,
            title: "添加图片",
            resource: .homeIconChatPicture,
            padding: 14
        ))
//        listAll.append(ChatMoreBean(
//            type: ChatMoreType.TYPE_TAKE_PHOTO,
//            title: "拍照",
//            resource: .homeIconChatTakePhoto,
//            padding: 10
//        ))
        listAll.append(ChatMoreBean(
            type: ChatMoreType.TYPE_END,
            title: "结束话题",
            resource: .homeIconChatEnd,
            padding: 12
        ))
        listAll.append(ChatMoreBean(
            type: ChatMoreType.TYPE_CLEAR,
            title: "清空聊天记录",
            resource: .homeIconChatClear,
            padding: 14
        ))
//        listAll.append(ChatMoreBean(
//            type: ChatMoreType.TYPE_SEARCH,
//            title: "搜索",
//            resource: .homeIconChatSearch,
//            padding: 15
//        ))
        listAll.append(ChatMoreBean(
            type: ChatMoreType.TYPE_CHAT_SET,
            title: "聊天设置",
            resource: .homeIconChatSet,
            padding: 12
        ))
        listAll.append(ChatMoreBean(
            type: ChatMoreType.TYPE_PAT,
            title: "拍一拍",
            resource: .homeIconPat,
            padding: 12
        ))
        
        self.noMore = true
        self.items = listAll
    }
}
